package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程计划表
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("course_plan")
public class CoursePlan {

    /**
     * 课程安排id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 教师id
     */
    private Integer teacherId;

    /**
     * 课程id
     */
    private Integer courseId;

    /**
     * 一周上课次数
     */
    private Integer weekCount;

    /**
     * 录入时间
     */
    private LocalDateTime inputTime;

    /**
     * 对应班级id
     */
    private Integer classId;

    /**
     * 录入人id
     */
    private Integer inputId;

    /**
     * 需求
     */
    private String need;

    /**
     * 权重
     */
    private Integer weight;

    /**
     * 0删除
     */
    @TableLogic
    private Boolean enable;

    /**
     * 教师
     */
    @TableField(exist = false)
    private Teacher teacher;

    /**
     * 课程
     */
    @TableField(exist = false)
    private Course course;
}
